﻿using System;

public static class IntExtensionMethod
{
    /// <summary>
    /// Returns a string in the current monteary format
    /// </summary>
    public static string ToEuro(this int Amount)
    {
        return Amount.ToString("N0") + " euro";
    }

    /// <summary>
    /// Returns a string in the current monteary format
    /// </summary>
    /// <param name="Amount">Amount needed to be converted in euro</param>
    /// <param name="GenerateProfits"><code>true</code> if the operation generated profits, otherwise <code>false</code></param>
    /// <returns>Color-Proformated string</returns>
    /// <remarks>Colors are DarkGreen for profitable operations and DarkRed for non-profitable operations</remarks>
    public static string ToEuro(this int Amount, bool GenerateProfits)
    {
        return (Amount.ToString("N0") + " euro").Colorize((GenerateProfits ? ConsoleColor.DarkGreen : ConsoleColor.DarkRed));
    }
}
